<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>无标题文档</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <th:block th:include="public::common-script"></th:block>

    <script type="text/javascript">
        $(function () {
            //导航切换
            $(".menuson li").click(function () {
                $(".menuson li.active").removeClass("active")
                $(this).addClass("active");
            });

            $('.title').click(function () {
                var $ul = $(this).next('ul');
                if ($ul.is(':visible')) {
                    $(this).next('ul').hide();
                } else {
                    $(this).next('ul').show();
                }
            });
        })
    </script>

</head>

<body style="background:#f0f9fd;">
<div class="lefttop"><span></span>系统菜单</div>

<dl class="leftmenu">

    <dd>
        <div class="title">
            <span><img src="images/leftico01.png"/></span>基础管理
        </div>
        <ul class="menuson">
            <li class="active"><cite></cite><a th:href="@{/welcome}" target="rightFrame">首页</a><i></i></li>
        </ul>
    </dd>
    <dd>
        <div class="title"><span><img src="images/leftico02.png"/></span>我的班级</div>
        <ul class="menuson">
            <li><cite></cite><a th:href="@{/teacher/getSelfUser}" target="rightFrame">学生列表</a><i></i></li>
            <li><cite></cite><a th:href="@{/teacher/teacherExaminationRelease}" target="rightFrame">考试发布</a><i></i></li>
            <li><cite></cite><a th:href="@{/teacher/examInfo?currentPage=1&pageSize=10}" target="rightFrame">考试信息</a><i></i></li>
        </ul>
    </dd>

    <dd th:each="role:${session.user.roles}" th:if="${role.name=='ROLE_ADMIN'}">
        <div class="title">
            <span><img src="images/leftico03.png"/></span>行政管理
        </div>
        <ul class="menuson">
            <li><cite></cite><a th:href="@{/clazz/list?currentPage=1&pageSize=10}" target="rightFrame">班级管理</a><i></i>
            </li>
            <li><cite></cite><a th:href="@{/student/list?currentPage=1&pageSize=10}" target="rightFrame">学生管理</a><i></i>
            </li>
            <li><cite></cite><a th:href="@{/user/list?currentPage=1&pageSize=10}" target="rightFrame">用户管理</a><i></i>
            </li>
            <li><cite></cite><a th:href="@{/admin/adminExaminationManagement?currentPage=1&pageSize=10}" target="rightFrame">考试管理(开发中)</a><i></i></li>
        </ul>
    </dd>
</dl>

</body>

</html>